// 导入封装的axios
import request from '../http'

// 登录接口
export const login = (data:any) => {
  return request.post('/user/login', data)
}

// 保存用户接口
export const saveUser = (data:any) => {
  return request.post('/user/save', data)
}

// 删除用户接口
export const deleteUser = (id:number) => {
  return request.delete(`/user/delete/${id}`)
}

// 更新用户接口
export const updateUser = (data:any) => {
  return request.put('/user/update', data)
}

